package com.frejoys.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("j_user_address")
public class UserAddress implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    //用户id
    private Long userId;

    //收货人姓名
    private String name;

    //联系电话
    private String phone;

    //省
    private String province;

    //市
    private String city;

    //区县
    private String district;

    //街道地址
    private String street;

    //详细地址
    private String address;

    //-1删除，0正常，1默认地址
    private Integer status;
}
